
#pragma once

class CHrkStream:public std::ofstream
{
public:
	CHrkStream();
	~CHrkStream();

	void SetTab( int nTabs );
	void ResetTab();
	
	void IncTab();
	void DecTab();
	
	void PrintTabString( const TCHAR* fmt,... );
	void PrintTabLine( const TCHAR* fmt,... );
	void PrintTabs();
	void PrintEndLine();
	void PrintString( const TCHAR* fmt,...);
	void PrintLine( const TCHAR* fmt,... );

	virtual void OutputString( const TCHAR* str );
public:
	int m_nTabs;
};